package cn.edu.cug.cs.gtl.docsrv.auth.controller;

import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/api/auth/authority")
public class AuthorityController {


    /**
     * 根据传入的用户名，获取相应的权限信息，变成JSON返回给前端
     * @param userName
     * @return
     */
    @GetMapping("/getAuthorityByUserName")
    public String getAuthorityByUserName(
            @RequestParam(value = "userName", defaultValue = "admin") String userName){
        return new String();
    }




}
